package com.zang.im.croom.netty.util;

import com.zang.im.croom.model.protobuf.WSMessageOuterClass;
import com.zang.im.croom.netty.common.SSGlobalConstMap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author Zhang Qiang
 * @Date 2019/7/29 17:16
 */
@Component
public class MessageUtil {

    private Map<String, Channel> channelMap = SSGlobalConstMap.getChannelMap();

    public void sendMsg(ChannelHandlerContext ctx, WSMessageOuterClass.WSMessage msg){

        ctx.writeAndFlush(msg);

    }


    private String getMsg(){
        return "";
    }





}
